package com.ivo.sys.user;


import org.springframework.stereotype.Repository;

import com.ivo.core.hibernate.ModelManager;

@Repository
public class UserManager extends ModelManager<User>{
	
	public User getUser(String uid) {
		String hql = "select u from User u  where u.isValid=true and u.user_id=?0 ";
		return findUnique(hql, uid);
	}
//
//	public Long count() {
//		String hql = "select u from User u  where u.isValid=true ";
//		return hibernateInvoker.count(hql);
//	}
//
//	public User get(String emp_ID) {
//		if(StringUtil.isBlank(emp_ID))
//			return null;
//		String hql = "from User c where c.isValid = true and c.user_id = ?";
//		return findUnique(hql, emp_ID);
//	}
	

}
